﻿//-----------------------------------------------------------------------
// <copyright file="Enumerations.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings
using System;
using System.Xml.Serialization;
#endregion

namespace GateShift.Tools.DatabaseMigration.Configuration
{
    /// <summary>
    /// Database ChangeSet Update Type
    /// </summary>
    [Serializable]
    public enum ChangeSetType
    {
        /// <summary>
        /// Data Injection
        /// </summary>
        [XmlEnum(Name = "D")]
        Data = 0,

        /// <summary>
        /// Data Function
        /// </summary>
        [XmlEnum(Name = "F")]
        Function = 1,

        /// <summary>
        /// Stored Procedure
        /// </summary>
        [XmlEnum(Name = "P")]
        Procedure = 2,

        /// <summary>
        /// Table Schema
        /// </summary>
        [XmlEnum(Name = "S")]
        Schema = 3,

        /// <summary>
        /// Database View
        /// </summary>
        [XmlEnum(Name = "V")]
        View = 4
    }
}
